package modules

type Role struct {
	Id          int    `json:"id"`
	RoleName    string `json:"role_name"`
	Description string `json:"description"`
	AddTime     int    `json:"add_time"`
	Users       []User `gorm:"many2many:user_role" json:"users"`
	Auths       []Auth `gorm:"many2many:role_auth" json:"auths"`
}

func (Role) TableName() string {
	return "role"
}
